package com.pingan.setting.money24url.dao;

import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.orm.ibatis.SqlMapClientTemplate;
import org.springframework.stereotype.Repository;

import com.pingan.setting.money24url.entity.Money24UrlBean;

@Repository
public class Money24UrlDao {

	@Resource
	private SqlMapClientTemplate reportsysSetttingReadSqlMapClientTemplate;

	@SuppressWarnings("unchecked")
	public List<Money24UrlBean> getStatMoney24Urls(Date date) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("date", date);

		return reportsysSetttingReadSqlMapClientTemplate.queryForList(
				"money24url.getStatMoney24Urls", map);
	}

	@SuppressWarnings("unchecked")
	public List<Money24UrlBean> getReferStatUrls(Date date) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("date", date);

		return reportsysSetttingReadSqlMapClientTemplate.queryForList(
				"money24url.getReferStatUrls", map);
	}

}
